package foxesandrabbits.species;

import foxesandrabbits.field.Field;
import foxesandrabbits.field.Location;

/**
 * A simple model of a rabbit.
 * Rabbits age, move, breed, and die.
 * 
 * @author Hadrien Luttiau
 */
public class Rabbit extends Killer implements Vegetarian
{
	private static int RABBIT_FOOD_VALUE=22;
	private static double RABBIT_BREEDING_PROBABILITY = 0.9;
	
    /**
     * Create a new rabbit. A rabbit may be created with age
     * zero (a new born) or with a random age.
     * 
     * @param randomAge If true, the rabbit will have a random age.
     * @param field The field currently occupied.
     * @param location The location within the field.
     */
    public Rabbit(boolean randomAge, Field field, Location location)
    {
    	super(randomAge, field, location, RABBIT_FOOD_VALUE,RABBIT_BREEDING_PROBABILITY);
    	preys = new Class[] { Letuce.class, Carrot.class };
    }

}
